/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * All Rights Researved.
 *
 * This library is developed and distributed for free usage,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * You can redistribute and/or modify it under the terms of the
 * Simplified BSD License
 *
 *
 *
 *
 *
 *
 *
 * The event is to pass data in format of AppDataModel
 * @Original Author: jin Chen
 * @date: Oct 29, 2003$
 * @version: 1.0
 */
package edu.psu.geovista.common.awt.event.dataloading;

import edu.psu.geovista.data.model.AppDataModel;
import edu.psu.geovista.ui.event.DataSetEvent;

public class AppDataEvent extends DataSetEvent{
    public static enum EventType{
        LoadData, //load data from data loader
        NewData   // generate data at runtime
    };
    String dataname;
    EventType eventType;
    private transient AppDataModel dataModel;
    public AppDataEvent(Object source, Object[] dataSet) {
        super(source, dataSet);
    }

    public AppDataEvent(Object source, Object[] dataSet, AppDataModel dataModel) {
        super(source, dataSet);
        this.dataModel = dataModel;
    }

    public AppDataModel getDataModel() {
        return dataModel;
    }
     public String getDataname() {
        return dataname;
    }

    public void setDataname(String dataname) {
        this.dataname = dataname;
    }

    public EventType getEventType() {
        return eventType;
    }

    public void setEventType(EventType eventType) {
        this.eventType = eventType;
    }


}
